﻿@{
    ViewBag.Title = "MyaccountSecurityCenter";
    Layout = "~/Views/Shared/MasterView.cshtml";
}

@*<script type="text/javascript" src="/scripts/jquery-1.8.3.min.js"> </script>*@
<script type="text/javascript" src="/scripts/jquery.validate.min.js"> </script>
@*<script type="text/javascript" src="/scripts/legacy/JqueryJson.js"></script>
    <script type="text/javascript" src="/scripts/legacy/com.js"></script>
    <script type="text/javascript" src="/scripts/jQuery.md5.js"></script>
    <script type="text/javascript" src="/scripts/legacy/area.js"></script>
    <script type="text/javascript" src="/scripts/legacy/ceng.js"></script>
    <script type="text/javascript" src="/scripts/hongling-validate-methods.js"></script>
    <script type="text/javascript" src="/scripts/common/util.js"></script>*@
<link type="text/css" rel="stylesheet" href="/pc/themes/base.css">
<link type="text/css" rel="stylesheet" href="/pc/themes/ceng.css">
<link type="text/css" rel="stylesheet" href="/pc/themes/Safe.css">
<link rel="stylesheet" type="text/css" href="/pc/themes/util.css"/>
<script>
    $(function ()
    {
        $.post("/Myaccount/SecurityCenterTesting", {}, function (mes)
        {
            var Percentage = 0;
            if (mes != "")
            {
                if (mes.UserPwd != "" && mes.UserPwd != null) {
                    $("#UserPwd").removeClass("Setup_no");
                    $("#UserPwd").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#UserPwd").removeClass("SSetup_ok");
                    $("#UserPwd").addClass("Setup_no");
                }
                if (mes.UserPhone != ""&&mes.UserPhone!=null)
                {
                    $("#phone").removeClass("Setup_no");
                    $("#phone").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else
                {
                    $("#phone").removeClass("SSetup_ok");
                    $("#phone").addClass("Setup_no");
                }
                if (mes.UserrRealName != "" && mes.UserrRealName != null) {
                    $("#RealName").removeClass("Setup_no");
                    $("#RealName").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#RealName").removeClass("SSetup_ok");
                    $("#RealName").addClass("Setup_no");
                }
                if (mes.UserMemlevelId != "" && mes.UserMemlevelId != null)
                {
                    $("#vip").removeClass("Setup_no");
                    $("#vip").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#vip").removeClass("SSetup_ok");
                    $("#vip").addClass("Setup_no");
                }
                if (mes.PaymentPwd != "" && mes.PaymentPwd != null)
                {
                    $("#PaymentPwd").removeClass("Setup_no");
                    $("#PaymentPwd").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#PaymentPwd").removeClass("SSetup_ok");
                    $("#PaymentPwd").addClass("Setup_no");
                }
                if (mes.UserrBcardMesId != "" && mes.UserrBcardMesId != null)
                {
                    $("#UserrBcardMesId").removeClass("Setup_no");
                    $("#UserrBcardMesId").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#UserrBcardMesId").removeClass("SSetup_ok");
                    $("#UserrBcardMesId").addClass("Setup_no");
                }
                if (mes.UserEmail != "" && mes.UserEmail != null) {
                    $("#UserEmail").removeClass("Setup_no");
                    $("#UserEmail").addClass("Setup_ok");
                    Percentage += 12.5;
                }
                else {
                    $("#UserEmail").removeClass("SSetup_ok");
                    $("#UserEmail").addClass("Setup_no");
                }

                $("#em").css("width",Percentage+"%")
            }
            else
            {
                alert("出错啦")
            }
        })
    })
</script>
<div class="content" id="hongman">
    <div class="content" id="hongman">
        <div class="Bind">
            <style type="text/css">
                .safe_index table.table_list 
                {
                    border-style: none;
                    font-size: 14px;
                }
                .Bind {
                    min-height: 100px;
                    _height: 100px;
                }
            </style>
            <div class="path_safe"><span>安全中心</span></div>
            <div class="clear"></div>
            <div class="safe_index">
                <div class="safe_dj"><span class="lf">您的账户安全等级：</span><p class="lf"><em id="em" style="" class="lf"></em></p><span class="lf">中</span></div>
                <div class="clear"></div>
                <table cellspacing="0" cellpadding="0" class="table_list" style="width: 100%">
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" id="UserPwd" class="Setup_ok"></span>
                        </td>
                        <td class="td_2">
                            <p class="pic_1 lf">
                            </p>
                            登录密码
                        </td>
                        <td class="td_left td_3">
                            建议使用6个字符以上的数字、字母组合密码。
                        </td>
                        <td class="Editor td_4">
                            <a target="" href="/SecurityCenter/UserPwdUpd" class="">修改</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" id="phone" class="Setup_no"></span>
                        </td>
                        <td class="td_2">
                            绑定手机
                        </td>
                        <td class="td_left">
                            修改密码、银行账号、提现等操作需要验证手机验证码。
                        </td>
                        <td class="Editor">
                            <a target="" href="/SecurityCenter/UserRegisterPhone" class="">绑定</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" id="RealName" class="Setup_no"></span>
                        </td>
                        <td class="td_2">
                            实名认证
                        </td>
                        <td class="td_left">
                            提现银行账户名需与实名认证名字一致，且一个证件号只能认证一个账户。
                        </td>
                        <td>
                            <a target="_blank" href="/Authonym/Authonym_ADD" class="a_1">查看</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" id="vip" class="Setup_ok"></span>
                        </td>
                        <td class="td_2">
                            申请VIP
                        </td>
                        <td class="td_left">
                            VIP用户可享有借款资格、债权转让、自动投标、红币兑换、贴心服务。
                        </td>
                        <td class="Editor">
                            <a target="_blank" href="curityipCert" class="a_1">续费</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" id="PaymentPwd" class="Setup_ok"></span>
                        </td>
                        <td class="td_2">
                            交易密码
                        </td>
                        <td class="td_left">
                            交易密码不能与登录密码一致；建议使用6个字符以上的数字、字母组合密码。
                        </td>
                        <td class="Editor">
                            <a target="_blank" href="/MyAccount/PayPwd" class="a_1">修改</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您未设置完成" id="UserrBcardMesId" class="Setup_no"></span>
                        </td>
                        <td class="td_2">
                            我的银行卡
                        </td>
                        <td class="td_left">
                            建议至少绑定一张本人开户的银行卡。
                        </td>
                        <td>
                            <a target="_blank" href="/SecurityCenter/UserBindingBackCard" class="">设置</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您未设置完成" id="UserEmail" class="Setup_no"></span>
                        </td>
                        <td class="td_2">
                            绑定电子邮箱
                        </td>
                        <td class="td_left">
                            绑定电子邮箱后便于接收平台的重要通知。
                        </td>
                        <td>
                            <a target="_blank" href="/SecurityCenter/UserBinDingEmail" class="">绑定</a>
                        </td>
                    </tr>
                    <tr>
                        <td class="td_1">
                            <span title="该项您已设置完成" class="Setup_ok"></span>
                        </td>
                        <td class="td_2">
                            开通借款权限
                        </td>
                        <td class="td_left">
                            在网站申请借款必须开通借款权限。
                        </td>
                        <td>
                            <a title="关闭权限" href="curity/loanGranting/index" class="a_1">关闭</a>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
